# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=gnome-js-common

pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.1.2
pkgrel=1
pkgdesc="GNOME JavaScript common modules (mingw-w64)"
url="http://live.gnome.org/Seed/"
license=('GPL3')
arch=('any')
groups=("${MINGW_PACKAGE_PREFIX}")
makedepends=("intltool")
source=(http://ftp.gnome.org/pub/GNOME/sources/${_realname}/0.1/${_realname}-${pkgver}.tar.bz2)
sha1sums=('f3771ad53e158443ffe84b5d86fb2ce73417a69d')

prepare() {
  cd "${srcdir}"/${_realname}-${pkgver}
}

build() {
  mkdir -p "${srcdir}/build-${CARCH}"
  cd "${srcdir}/build-${CARCH}"
  "${srcdir}"/${_realname}-${pkgver}/configure \
      --prefix=${MINGW_PREFIX}
  make
}

package() {
  cd "${srcdir}/build-${CARCH}"
  make DESTDIR=${pkgdir} install
}
